
package com.cms.service;

import java.io.InputStream;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.cms.entity.Record;
import com.cms.utils.page.Pagination;

/**
 * @ClassName: RecordService
 * @Description: TODO
 * @date 2021-02-27 15:41:09
 */
public interface RecordService {

    int deleteByPrimaryKey(Integer id);

    int deleteRecord(List<String> ids);

    int addRecord(Record record) throws Exception;

    int getTotalItemsCount(String searchKey);

    Record selectRecord(String id);

    int updateRecord(Record record);

    int importExcelInfo(InputStream in, MultipartFile file) throws Exception;

    List<Record> getRecordList(Pagination<Record> page, String searchKey);
}
